How to deploy laravel app into Heroku with pgsql database 

Tools and software 
1-php 7 or greater than version 
2-composer
3-git 
4-Heroku CLI
5-account in heroku

steps
1- create new laravel app using this command 
	$ composer create-project laravel/laravel example-app
	or 
	$ composer global require laravel/installer //this for installing the Laravel
 	then
	$laravel new example-app
2- after you complated your projetc with all files 
3- create account in Heroku 
4- in your CLI excute this command 
	$ heroku login 
5- create new app in Heoku by this command
	$ heroku create  yourapp
6- upload your app to heroku 
	$ git init 
	$ git add .
	$ git commit -m"your comment"
	$ git push heroku main
7- Config Vars
 	$ heroku config:add APP_NAME=yourapp
        $ heroku config:add APP_KEY=your key
        $ heroku config:add APP_DEBUG=true
	$ heroku config:add APP_URL=your URL get from heroku

8- database confige
	$ heroku addons:create heroku-postgresql:hobby-dev   
	$ heroku config:set DB_CONNECTION=pgsql
	$ heroku pg:credentials:url //this command will gevin you some of key and value like DB_HOST and other 
					you will using in command 
9- add datebase Config Vars
	$ heroku config:add DB_HOST= copy and past "host" value from result gevin from this command  $ heroku pg:credentials:url
	$ heroku config:add DB_PORT= copy and past "port" value from result gevin from this command  $ heroku pg:credentials:url
	$ heroku config:add DB_DATABASE=copy and past "database" value from result gevin from this command  $ heroku pg:credentials:url
	$ heroku config:add DB_USERNAME= copy and past "user" value from result gevin from this command  $ heroku pg:credentials:url
	$ heroku config:add DB_PASSWORD= copy and past "password" value from result gevin from this command  $ heroku pg:credentials:url

10 - setup database files in config folder 
	$ heroku config
	you will get some key and value copy DATABASE_URL value

1- in the top of database.php file put this 
	
	in  
heroku login 
heroku addons:create heroku-postgresql:hobby-dev   
heroku config:set DB_CONNECTION=pgsql
heroku pg:credentials:url
heroku config:add DB_HOST=
heroku config:add DB_PORT=5432
heroku config:add DB_DATABASE=dbj8ck14v9eapa
heroku config:add DB_USERNAME=grxuaequyfocfq
heroku config:add DB_PASSWORD=34ae6ce8972b165ba4bf7dbd0540d4b8d5a1de39b65b00b87f4fac3e9d51fa6c

heroku run php artisan migrate

